<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/6/17
 * Time: 13:26
 */

class assessment extends MY_Controller{
    function __construct() {
        parent::__construct();
        //加载模型
        /* $roleAry = array('admin','Shaozhuqiang','jay','judy','lyb','prezwang','david','karina','anna','zlj','AlexTM');
         if(!in_array($this->users['account'],$roleAry)){
             js_goto('','你没有权限！','');
            // redirect(blang_url('orders/order'));

             return;
         }*/
        $this->load->model('assessment_model');
    }
    public function index(){
        $this->load->view('defaults/assessment_list');
        $this->load->view('defaults/common/footer');
    }

    /**
     *
     */
    public function GetServiceAssessmentList(){

    }

    /**
     *获取维修师各项考核数据
     */
    public function GetRepairerAssessmentList(){
        $repairsDoneData = $this->assessment_model->CountRepairsDoneData();
        $data['repairsDoneData']=$repairsDoneData;
        $this->load->view('defaults/assessment_list',$data);
        $this->load->view('defaults/common/footer',$data);
    }
}